/**
 * 扩展定位配置
 * @description 最大5个扩展按钮
 */
export const roundCoordinate = {
  right: {
    1: [{ x: -180, y: -50 }],
    2: [
      { x: -170, y: -110 },
      { x: -170, y: 10 }
    ],
    3: [
      { x: -130, y: -160 },
      { x: -180, y: -50 },
      { x: -130, y: 60 },
    ],
    4: [
      { x: -70, y: -180 },
      { x: -170, y: -110 },
      { x: -170, y: 10 },
      { x: -70, y: 80 },
    ],
    5: [
      { x: -40, y: -180 },
      { x: -143, y: -150 },
      { x: -180, y: -50 },
      { x: -143, y: 50 },
      { x: -40, y: 80 },
    ],
  },
  left: {
    1: [{ x: 80, y: -50 }],
    2: [
      { x: 70, y: -110 },
      { x: 70, y: 10 }
    ],
    3: [
      { x: 40, y: -160 },
      { x: 80, y: -50 },
      { x: 40, y: 60 },
    ],
    4: [
      { x: -30, y: -180 },
      { x: 70, y: -110 },
      { x: 70, y: 10 },
      { x: -30, y: 80 },
    ],
    5: [
      { x: -60, y: -180 },
      { x: 43, y: -150 },
      { x: 80, y: -50 },
      { x: 43, y: 50 },
      { x: -60, y: 80 },
    ],
  },
  top: {
    1: [{ x: -50, y: 80 }],
    2: [
      { x: -110, y: 70 },
      { x: 10, y: 70 }
    ],
    3: [
      { x: -160, y: 40 },
      { x: -50, y: 80 },
      { x: 60, y: 40 },
    ],
    4: [
      { x: -180, y: -30 },
      { x: -110, y: 70 },
      { x: 10, y: 70 },
      { x: 80, y: -30 },
    ],
    5: [
      { x: -180, y: -60 },
      { x: -150, y: 43 },
      { x: -50, y: 80 },
      { x: 50, y: 43 },
      { x: 80, y: -60 },
    ],
  },
  bottom: {
    1: [{ x: -50, y: -180 }],
    2: [
      { x: -110, y: -170 },
      { x: 10, y: -170 }
    ],
    3: [
      { x: -160, y: -130 },
      { x: -50, y: -180 },
      { x: 60, y: -130 },
    ],
    4: [
      { x: -180, y: -70 },
      { x: -110, y: -170 },
      { x: 10, y: -170 },
      { x: 80, y: -70 },
    ],
    5: [
      { x: -180, y: -40 },
      { x: -150, y: -143 },
      { x: -50, y: -180 },
      { x: 50, y: -143 },
      { x: 80, y: -40 },
    ],
  },
}

/**
 * row 排列方式
 */
export const rowTypeMap = {
  row: {
    top: 'column',
    bottom: 'column',
    right: 'row',
    left: 'row',
  },
  column: {
    top: 'row',
    bottom: 'row',
    right: 'column',
    left: 'column',
  }
}

/**
 * row 排列方向
 */
export const rowDirectionMap = {
  reverse: {
    top: 'bottom',
    bottom: 'top',
    left: 'right',
    right: 'left'
  },
  center: {
    top: 'top',
    bottom: 'bottom',
    left: 'left',
    right: 'right'
  },
  bottom: {
    top: 'bottom',
    bottom: 'top',
    left: 'right',
    right: 'left'
  },
  top: {
    top: 'top',
    bottom: 'bottom',
    left: 'left',
    right: 'right'
  },
  right: {
    top: 'right',
    bottom: 'left',
    left: 'top',
    right: 'bottom'
  },
  left: {
    top: 'left',
    bottom: 'right',
    left: 'bottom',
    right: 'top'
  },
  astringency: {
    top: 'right',
    bottom: 'right',
    left: 'bottom',
    right: 'bottom'
  }
}